package com.kx.yooli.kx.wechat.po.message;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author john_sqwen-childe.wen
 * date 2024/4/8
 * PROJECT_NAME wechat
 * description create WechatSmsSequenceExample by john_sqwen
 * and . value is
 */
public class WechatSmsSequenceExample {
    private final Logger log = LoggerFactory.getLogger(WechatSmsSequenceExample.class);
  /**
   * 排序字段,wechat_sms_sequence
   */
  protected String orderByClause;

  /**
   * 是否过滤重复数据,wechat_sms_sequence
   */
  protected boolean distinct;

  /**
   * ,wechat_sms_sequence
   */
  protected List<Criteria> oredCriteria;

  /**
   *  构造查询条件,wechat_sms_sequence
   */
  public WechatSmsSequenceExample() {
    oredCriteria = new ArrayList<Criteria>();
  }

  /**
   *  设置排序字段,wechat_sms_sequence
   *
   * @param orderByClause 排序字段
   */
  public void setOrderByClause(String orderByClause) {
    this.orderByClause = orderByClause;
  }

  /**
   *  获取排序字段,wechat_sms_sequence
   */
  public String getOrderByClause() {
    return orderByClause;
  }

  /**
   *  设置过滤重复数据,wechat_sms_sequence
   *
   * @param distinct 是否过滤重复数据
   */
  public void setDistinct(boolean distinct) {
    this.distinct = distinct;
  }

  /**
   *  是否过滤重复数据,wechat_sms_sequence
   */
  public boolean isDistinct() {
    return distinct;
  }

  /**
   *  获取当前的查询条件实例,wechat_sms_sequence
   */
  public List<Criteria> getOredCriteria() {
    return oredCriteria;
  }

  /**
   * ,wechat_sms_sequence
   *
   * @param criteria 过滤条件实例
   */
  public void or(Criteria criteria) {
    oredCriteria.add(criteria);
  }

  /**
   * ,wechat_sms_sequence
   */
  public Criteria or() {
    Criteria criteria = createCriteriaInternal();
    oredCriteria.add(criteria);
    return criteria;
  }

  /**
   *  创建一个查询条件,wechat_sms_sequence
   */
  public Criteria createCriteria() {
    Criteria criteria = createCriteriaInternal();
    if (oredCriteria.size() == 0) {
      oredCriteria.add(criteria);
    }
    return criteria;
  }

  /**
   *  内部构建查询条件对象,wechat_sms_sequence
   */
  protected Criteria createCriteriaInternal() {
    Criteria criteria = new Criteria();
    return criteria;
  }

  /**
   *  清除查询条件,wechat_sms_sequence
   */
  public void clear() {
    oredCriteria.clear();
    orderByClause = null;
    distinct = false;
  }

  /**
   * 基本动态SQL对象,wechat_sms_sequence
   */
  protected abstract static class GeneratedCriteria {
    protected List<Criterion> criteria;

    protected GeneratedCriteria() {
      super();
      criteria = new ArrayList<Criterion>();
    }

    public boolean isValid() {
      return criteria.size() > 0;
    }

    public List<Criterion> getAllCriteria() {
      return criteria;
    }

    public List<Criterion> getCriteria() {
      return criteria;
    }

    protected void addCriterion(String condition) {
      if (condition == null) {
        throw new RuntimeException("Value for condition cannot be null");
      }
      criteria.add(new Criterion(condition));
    }

    protected void addCriterion(String condition, Object value, String property) {
      if (value == null) {
        throw new RuntimeException("Value for " + property + " cannot be null");
      }
      criteria.add(new Criterion(condition, value));
    }

    protected void addCriterion(String condition, Object value1, Object value2, String property) {
      if (value1 == null || value2 == null) {
        throw new RuntimeException("Between values for " + property + " cannot be null");
      }
      criteria.add(new Criterion(condition, value1, value2));
    }

    public Criteria andIdIsNull() {
      addCriterion("id is null");
      return (Criteria) this;
    }

    public Criteria andIdIsNotNull() {
      addCriterion("id is not null");
      return (Criteria) this;
    }

    public Criteria andIdEqualTo(Integer value) {
      addCriterion("id =", value, "id");
      return (Criteria) this;
    }

    public Criteria andIdNotEqualTo(Integer value) {
      addCriterion("id <>", value, "id");
      return (Criteria) this;
    }

    public Criteria andIdGreaterThan(Integer value) {
      addCriterion("id >", value, "id");
      return (Criteria) this;
    }

    public Criteria andIdGreaterThanOrEqualTo(Integer value) {
      addCriterion("id >=", value, "id");
      return (Criteria) this;
    }

    public Criteria andIdLessThan(Integer value) {
      addCriterion("id <", value, "id");
      return (Criteria) this;
    }

    public Criteria andIdLessThanOrEqualTo(Integer value) {
      addCriterion("id <=", value, "id");
      return (Criteria) this;
    }

    public Criteria andIdIn(List<Integer> values) {
      addCriterion("id in", values, "id");
      return (Criteria) this;
    }

    public Criteria andIdNotIn(List<Integer> values) {
      addCriterion("id not in", values, "id");
      return (Criteria) this;
    }

    public Criteria andIdBetween(Integer value1, Integer value2) {
      addCriterion("id between", value1, value2, "id");
      return (Criteria) this;
    }

    public Criteria andIdNotBetween(Integer value1, Integer value2) {
      addCriterion("id not between", value1, value2, "id");
      return (Criteria) this;
    }

    public Criteria andSequenceNameIsNull() {
      addCriterion("sequence_name is null");
      return (Criteria) this;
    }

    public Criteria andSequenceNameIsNotNull() {
      addCriterion("sequence_name is not null");
      return (Criteria) this;
    }

    public Criteria andSequenceNameEqualTo(String value) {
      addCriterion("sequence_name =", value, "sequenceName");
      return (Criteria) this;
    }

    public Criteria andSequenceNameNotEqualTo(String value) {
      addCriterion("sequence_name <>", value, "sequenceName");
      return (Criteria) this;
    }

    public Criteria andSequenceNameGreaterThan(String value) {
      addCriterion("sequence_name >", value, "sequenceName");
      return (Criteria) this;
    }

    public Criteria andSequenceNameGreaterThanOrEqualTo(String value) {
      addCriterion("sequence_name >=", value, "sequenceName");
      return (Criteria) this;
    }

    public Criteria andSequenceNameLessThan(String value) {
      addCriterion("sequence_name <", value, "sequenceName");
      return (Criteria) this;
    }

    public Criteria andSequenceNameLessThanOrEqualTo(String value) {
      addCriterion("sequence_name <=", value, "sequenceName");
      return (Criteria) this;
    }

    public Criteria andSequenceNameLike(String value) {
      addCriterion("sequence_name like", value, "sequenceName");
      return (Criteria) this;
    }

    public Criteria andSequenceNameNotLike(String value) {
      addCriterion("sequence_name not like", value, "sequenceName");
      return (Criteria) this;
    }

    public Criteria andSequenceNameIn(List<String> values) {
      addCriterion("sequence_name in", values, "sequenceName");
      return (Criteria) this;
    }

    public Criteria andSequenceNameNotIn(List<String> values) {
      addCriterion("sequence_name not in", values, "sequenceName");
      return (Criteria) this;
    }

    public Criteria andSequenceNameBetween(String value1, String value2) {
      addCriterion("sequence_name between", value1, value2, "sequenceName");
      return (Criteria) this;
    }

    public Criteria andSequenceNameNotBetween(String value1, String value2) {
      addCriterion("sequence_name not between", value1, value2, "sequenceName");
      return (Criteria) this;
    }

    public Criteria andSequenceKeyIsNull() {
      addCriterion("sequence_key is null");
      return (Criteria) this;
    }

    public Criteria andSequenceKeyIsNotNull() {
      addCriterion("sequence_key is not null");
      return (Criteria) this;
    }

    public Criteria andSequenceKeyEqualTo(String value) {
      addCriterion("sequence_key =", value, "sequenceKey");
      return (Criteria) this;
    }

    public Criteria andSequenceKeyNotEqualTo(String value) {
      addCriterion("sequence_key <>", value, "sequenceKey");
      return (Criteria) this;
    }

    public Criteria andSequenceKeyGreaterThan(String value) {
      addCriterion("sequence_key >", value, "sequenceKey");
      return (Criteria) this;
    }

    public Criteria andSequenceKeyGreaterThanOrEqualTo(String value) {
      addCriterion("sequence_key >=", value, "sequenceKey");
      return (Criteria) this;
    }

    public Criteria andSequenceKeyLessThan(String value) {
      addCriterion("sequence_key <", value, "sequenceKey");
      return (Criteria) this;
    }

    public Criteria andSequenceKeyLessThanOrEqualTo(String value) {
      addCriterion("sequence_key <=", value, "sequenceKey");
      return (Criteria) this;
    }

    public Criteria andSequenceKeyLike(String value) {
      addCriterion("sequence_key like", value, "sequenceKey");
      return (Criteria) this;
    }

    public Criteria andSequenceKeyNotLike(String value) {
      addCriterion("sequence_key not like", value, "sequenceKey");
      return (Criteria) this;
    }

    public Criteria andSequenceKeyIn(List<String> values) {
      addCriterion("sequence_key in", values, "sequenceKey");
      return (Criteria) this;
    }

    public Criteria andSequenceKeyNotIn(List<String> values) {
      addCriterion("sequence_key not in", values, "sequenceKey");
      return (Criteria) this;
    }

    public Criteria andSequenceKeyBetween(String value1, String value2) {
      addCriterion("sequence_key between", value1, value2, "sequenceKey");
      return (Criteria) this;
    }

    public Criteria andSequenceKeyNotBetween(String value1, String value2) {
      addCriterion("sequence_key not between", value1, value2, "sequenceKey");
      return (Criteria) this;
    }

    public Criteria andSequenceValueIsNull() {
      addCriterion("sequence_value is null");
      return (Criteria) this;
    }

    public Criteria andSequenceValueIsNotNull() {
      addCriterion("sequence_value is not null");
      return (Criteria) this;
    }

    public Criteria andSequenceValueEqualTo(Integer value) {
      addCriterion("sequence_value =", value, "sequenceValue");
      return (Criteria) this;
    }

    public Criteria andSequenceValueNotEqualTo(Integer value) {
      addCriterion("sequence_value <>", value, "sequenceValue");
      return (Criteria) this;
    }

    public Criteria andSequenceValueGreaterThan(Integer value) {
      addCriterion("sequence_value >", value, "sequenceValue");
      return (Criteria) this;
    }

    public Criteria andSequenceValueGreaterThanOrEqualTo(Integer value) {
      addCriterion("sequence_value >=", value, "sequenceValue");
      return (Criteria) this;
    }

    public Criteria andSequenceValueLessThan(Integer value) {
      addCriterion("sequence_value <", value, "sequenceValue");
      return (Criteria) this;
    }

    public Criteria andSequenceValueLessThanOrEqualTo(Integer value) {
      addCriterion("sequence_value <=", value, "sequenceValue");
      return (Criteria) this;
    }

    public Criteria andSequenceValueIn(List<Integer> values) {
      addCriterion("sequence_value in", values, "sequenceValue");
      return (Criteria) this;
    }

    public Criteria andSequenceValueNotIn(List<Integer> values) {
      addCriterion("sequence_value not in", values, "sequenceValue");
      return (Criteria) this;
    }

    public Criteria andSequenceValueBetween(Integer value1, Integer value2) {
      addCriterion("sequence_value between", value1, value2, "sequenceValue");
      return (Criteria) this;
    }

    public Criteria andSequenceValueNotBetween(Integer value1, Integer value2) {
      addCriterion("sequence_value not between", value1, value2, "sequenceValue");
      return (Criteria) this;
    }

    public Criteria andCreateTimeIsNull() {
      addCriterion("create_time is null");
      return (Criteria) this;
    }

    public Criteria andCreateTimeIsNotNull() {
      addCriterion("create_time is not null");
      return (Criteria) this;
    }

    public Criteria andCreateTimeEqualTo(Date value) {
      addCriterion("create_time =", value, "createTime");
      return (Criteria) this;
    }

    public Criteria andCreateTimeNotEqualTo(Date value) {
      addCriterion("create_time <>", value, "createTime");
      return (Criteria) this;
    }

    public Criteria andCreateTimeGreaterThan(Date value) {
      addCriterion("create_time >", value, "createTime");
      return (Criteria) this;
    }

    public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
      addCriterion("create_time >=", value, "createTime");
      return (Criteria) this;
    }

    public Criteria andCreateTimeLessThan(Date value) {
      addCriterion("create_time <", value, "createTime");
      return (Criteria) this;
    }

    public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
      addCriterion("create_time <=", value, "createTime");
      return (Criteria) this;
    }

    public Criteria andCreateTimeIn(List<Date> values) {
      addCriterion("create_time in", values, "createTime");
      return (Criteria) this;
    }

    public Criteria andCreateTimeNotIn(List<Date> values) {
      addCriterion("create_time not in", values, "createTime");
      return (Criteria) this;
    }

    public Criteria andCreateTimeBetween(Date value1, Date value2) {
      addCriterion("create_time between", value1, value2, "createTime");
      return (Criteria) this;
    }

    public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
      addCriterion("create_time not between", value1, value2, "createTime");
      return (Criteria) this;
    }

    public Criteria andModifyTimeIsNull() {
      addCriterion("modify_time is null");
      return (Criteria) this;
    }

    public Criteria andModifyTimeIsNotNull() {
      addCriterion("modify_time is not null");
      return (Criteria) this;
    }

    public Criteria andModifyTimeEqualTo(Date value) {
      addCriterion("modify_time =", value, "modifyTime");
      return (Criteria) this;
    }

    public Criteria andModifyTimeNotEqualTo(Date value) {
      addCriterion("modify_time <>", value, "modifyTime");
      return (Criteria) this;
    }

    public Criteria andModifyTimeGreaterThan(Date value) {
      addCriterion("modify_time >", value, "modifyTime");
      return (Criteria) this;
    }

    public Criteria andModifyTimeGreaterThanOrEqualTo(Date value) {
      addCriterion("modify_time >=", value, "modifyTime");
      return (Criteria) this;
    }

    public Criteria andModifyTimeLessThan(Date value) {
      addCriterion("modify_time <", value, "modifyTime");
      return (Criteria) this;
    }

    public Criteria andModifyTimeLessThanOrEqualTo(Date value) {
      addCriterion("modify_time <=", value, "modifyTime");
      return (Criteria) this;
    }

    public Criteria andModifyTimeIn(List<Date> values) {
      addCriterion("modify_time in", values, "modifyTime");
      return (Criteria) this;
    }

    public Criteria andModifyTimeNotIn(List<Date> values) {
      addCriterion("modify_time not in", values, "modifyTime");
      return (Criteria) this;
    }

    public Criteria andModifyTimeBetween(Date value1, Date value2) {
      addCriterion("modify_time between", value1, value2, "modifyTime");
      return (Criteria) this;
    }

    public Criteria andModifyTimeNotBetween(Date value1, Date value2) {
      addCriterion("modify_time not between", value1, value2, "modifyTime");
      return (Criteria) this;
    }
  }

  /**
   * 数据库表 wechat_sms_sequence映射实体
   */
  public static class Criteria extends GeneratedCriteria {

    protected Criteria() {
      super();
    }
  }

  /**
   * 动态SQL对象,wechat_sms_sequence
   */
  public static class Criterion {
    private String condition;

    private Object value;

    private Object secondValue;

    private boolean noValue;

    private boolean singleValue;

    private boolean betweenValue;

    private boolean listValue;

    private String typeHandler;

    public String getCondition() {
      return condition;
    }

    public Object getValue() {
      return value;
    }

    public Object getSecondValue() {
      return secondValue;
    }

    public boolean isNoValue() {
      return noValue;
    }

    public boolean isSingleValue() {
      return singleValue;
    }

    public boolean isBetweenValue() {
      return betweenValue;
    }

    public boolean isListValue() {
      return listValue;
    }

    public String getTypeHandler() {
      return typeHandler;
    }

    protected Criterion(String condition) {
      super();
      this.condition = condition;
      this.typeHandler = null;
      this.noValue = true;
    }

    protected Criterion(String condition, Object value, String typeHandler) {
      super();
      this.condition = condition;
      this.value = value;
      this.typeHandler = typeHandler;
      if (value instanceof List<?>) {
        this.listValue = true;
      } else {
        this.singleValue = true;
      }
    }

    protected Criterion(String condition, Object value) {
      this(condition, value, null);
    }

    protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
      super();
      this.condition = condition;
      this.value = value;
      this.secondValue = secondValue;
      this.typeHandler = typeHandler;
      this.betweenValue = true;
    }

    protected Criterion(String condition, Object value, Object secondValue) {
      this(condition, value, secondValue, null);
    }
  }
}
